package com.xuecheng.api.search;

import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.response.TeachplanMediaPub;
import com.xuecheng.framework.domain.search.CourseSearchParam;
import com.xuecheng.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

@Api(value="课程搜索Day11",description = "课程管理接口,提供课程的增删改查",tags = {"课程搜索"})
public interface EsCourseControllerApi {

    //搜索课程信息Day11   CourseSearchParam:查询条件 价格 难度级别等等
    @ApiOperation("课程综合搜索Day11")
    public QueryResponseResult<CoursePub> list (int page, int size , CourseSearchParam courseSearchParam);

    //Day_15_1 根据id查询课程信息
    @ApiOperation("Day_15@1:根据id查询课程信息 ")
    public Map<String,CoursePub> getall(String id);

    //Day_15@9:根据课程计划id查询,课程媒资信息
    @ApiOperation("Day_15@9:根据课程计划id查询,课程媒资信息")
    public TeachplanMediaPub getmedia(String id);

}
